package com.example.learn_250711.test;

public class Demo3 {
    public static void main(String[] args) {
        Thread t = new Thread() {
            @Override
            public void run() {

            }
        };

        Thread tt = new Thread(new Runnable() {
            @Override
            public void run() {

            }
        });

        Thread ttt = new Thread(() -> {
            System.out.println("lambda 表达式创建线程");
        });
    }
}
